//
//  OTAddGroupVC.h
//  OT_OC
//
//  Created by yunmian on 2019/7/16.
//  Copyright © 2019 James. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, OTAddGroupVCType) {
    OTAddGroupVCTypeDefault,
    OTAddGroupVCTypeNumber,
    OTAddGroupVCTypeDate,
    OTAddGroupVCTypeGroup,
};

@protocol OTAddGroupVCDelegate <NSObject>

@optional
- (void)confirmGroupWithText:(NSString *)text;
- (void)confirmEditGroupWithText:(NSString *)text indexPath:(NSIndexPath *)indexPath;
- (void)confirmEditDateWithOTTime:(NSString *)OTTime selectedDate:(NSString *)selectedDate indexPath:(NSIndexPath *)indexPath;

- (void)cancelEditDateWithIndexPath:(NSIndexPath *)indexPath;
- (void)deleteEditDateWithIndexPath:(NSIndexPath *)indexPath;

@end

@interface OTAddGroupVC : UIViewController

@property (nonatomic, strong) NSIndexPath *indexPath;
@property (nonatomic, copy) NSString *groupName;

@property (nonatomic, copy) NSString *OTTime;
@property (nonatomic, copy) NSString *selectDate;
@property (nonatomic, weak) id<OTAddGroupVCDelegate> delegate;
@property (nonatomic, assign) OTAddGroupVCType type;

@end

NS_ASSUME_NONNULL_END
